package com.mls.fivedistrict.dao;

import com.mls.fivedistrict.pojo.Integral;
import com.mls.fivedistrict.pojo.ReceiveRecord;
import com.mls.fivedistrict.pojo.ReceiveRecordExample;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.mls.fivedistrict.pojo.Record;
import org.apache.ibatis.annotations.Param;

public interface ReceiveRecordMapper {
    long countByExample(ReceiveRecordExample example);

    int deleteByExample(ReceiveRecordExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ReceiveRecord record);

    int insertSelective(ReceiveRecord record);

    List<ReceiveRecord> selectByExample(ReceiveRecordExample example);

    ReceiveRecord selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ReceiveRecord record, @Param("example") ReceiveRecordExample example);

    int updateByExample(@Param("record") ReceiveRecord record, @Param("example") ReceiveRecordExample example);

    int updateByPrimaryKeySelective(ReceiveRecord record);

    int updateByPrimaryKey(ReceiveRecord record);

    int transferInsert(Date createDate);

    List<ReceiveRecord> selectAllRecord(Map params);
    Integral selectIntergral(Long integralId);
    void deleteBatch(List<Record> list);

    List<Record> getReceiveRecordList(@Param("params") Map params);

    long getMaxId(Date createDate);
}